package com.yips.mapper;

import com.yips.domain.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author Gralt of Rivia
* @desc 针对表【sys_user】的数据库操作Mapper
* 2022-05-08 11:15:38
* @Entity com.yips.domain.entity.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查询用户
     * @param username
     * @return
     */
    SysUser selectUserByUserName(String username);

    int insertSysUser(SysUser sysUser);

    /**
     * 校验用户名称是否唯一
     * @param username
     * @return
     */
    int checkUserNameUnique(String username);
}




